<?php
$page = $_GET['page'];
if (file_exists('pages/'.$page.'.php')) {
   include('pages/'.$page.'.php');
}
?>